package com.fast.manager.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.fast.commons.web.BaseController;

@Controller
@RequestMapping("/manager/other")
public class OtherController extends BaseController {
	
	/**
	 * UI icons
	 * @param request
	 * @return
	 */
	@RequestMapping(value="/ui_icons", method=RequestMethod.GET)
	public String ui_icons(HttpServletRequest request) {
		return viewName("ui-icons") ;
	}
	
	/**
	 * 百度在线编辑器
	 * @param request
	 * @return
	 */
	@RequestMapping(value="/ueditor", method=RequestMethod.GET)
	public String ueditor(HttpServletRequest request) {
		return viewName("ueditor") ;
	}
	@RequestMapping(value="/ueditor_add", method=RequestMethod.POST)
	public @ResponseBody String ueditor_add(String content) {
		return content ;
	}
	
}
